module.exports = {
  apiRoot: 'generated/api',
  typeRoot: 'generated/types',
  log: [
    // 'debug',
    // 'warn',
    // 'info'
  ],
  templates: {
    definition: 'src/tmpl/definition.ts.tmpl'
  },
  markRequiredModelProperty: false,
  configs: [{
    name: 'admin',
    trimPaths: ['admin'],
    url: 'http://localhost:9210/v3/api-docs',
    apiRoot: 'generated/api',
    typeRoot: 'generated/types',
    includes: [/^\/admin.*/]
  }, {
    name: 'default',
    url: 'http://localhost:9210/v3/api-docs',
    apiRoot: 'generated/api',
    typeRoot: 'generated/types',
    excludes: [/\/api\/v1\/msg.*/, /^\/admin.*/]
  }],
  typeParameterReflects: [{
    name: 'KeyValue',
    typeProperties: ['key', 'value']
  }, {
    name: 'JsonResult',
    typeProperties: ['data']
  }, {
    name: 'Page',
    typeProperties: ['content']
  }, {
    name: 'SimplePage',
    typeProperties: ['list']
  }, {
    name: 'Pair',
    typeProperties: ['first', 'second']
  }, {
    name: 'RequestValues',
    typeProperties: ['data']
  }],
  typesAsAny: ['JSONArray', 'Serializable', 'JSONObject', 'Unit'],
  typesAsVoid: ['Unit'],
  unwrapTypes: ['Response', 'ResponseSimpleEnum', 'JsonResult']
};
